﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SDATA;
using SDLL;
using SGUI;

namespace SABI
{
    public partial class frm0004 : Form
    {
        public frm0004()
        {
            InitializeComponent();
        }

        string sql = "";               

        private void frm0003_Load(object sender, EventArgs e)
        {
            
            
        }

        private void frm0004_Shown(object sender, EventArgs e)
        {
            sql = string.Format(" Update tb0199 Set Closing = 0 Where TranMonth = {0} And TranYear = {1} And DivisionID = '{2}'",FRM.Month,FRM.Year,FRM.DivisionID);
            DATA.ExecuteNonQuery(sql, FRM.ConnectString);


            DLL02.Info("Mở kỳ kế toán " + FRM.Period + " thành công");
            (Application.OpenForms["frmHome"] as frmHOME).CloseTab(this);
        }
        

    }
}
